package megrez.job.custom.tasks;

import java.time.Duration;

import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;
import megrez.job.common.Nap;

/**
 * 长时间任务
 *  
 * @author Lucky Yang
 * @since 2.6.9
 */
@Slf4j
@Component
public class LongTask {
   
    public void execute() {
        Nap.after(Duration.ofSeconds(61))
                .doThis(() -> log.info("{}.execute", LongTask.class.getName()));
    }

}
